package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生存储学生的基本信息和所属班级对象 students
 * 
 * @author ruoyi
 * @date 2024-05-23
 */
public class Students extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生的唯一标识 */
    private Long studentId;

    /** 学生的姓名 */
    @Excel(name = "学生的姓名")
    private String name;

    /** 学生的年龄 */
    @Excel(name = "学生的年龄")
    private Long age;

    /** 学生的性别 */
    @Excel(name = "学生的性别")
    private String gender;

    /** 学生所属的班级ID */
    @Excel(name = "学生所属的班级ID")
    private Long classId;

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("name", getName())
            .append("age", getAge())
            .append("gender", getGender())
            .append("classId", getClassId())
            .toString();
    }
}
